import Vue from 'vue';
import Router from 'vue-router';
import Home from '../pages/Home/Home.vue';
import PickProject from '../pages/PickProject/PickProject.vue';
import News from '../pages/News//News.vue';
import Mine from '../pages/Mine//Mine.vue';

const TaoChang = () => import('../pages/TaoChang/TaoChang.vue');
const TaoChangDetail = () =>
  import('../pages/TaoChangDetail/TaoChangDetail.vue');
const KeCheng = () => import('../pages/KeCheng/KeCheng.vue');
const KeChengDetail = () => import('../pages/KeChengDetail/KeChengDetail.vue');
const Tiku = () => import('../pages/Tiku/Tiku.vue');
const NewsDetail = () => import('../pages/NewsDetail/NewsDetail.vue');
const QueRecord = () => import('../pages/QueRecord/QueRecord.vue');
const DoRecord = () => import('../pages/DoRecord/DoRecord.vue');
const Question = () => import('../pages/Question/Question.vue');
const Score = () => import('../pages/Score/Score.vue');
const Login = () => import('../pages/Login/Login.vue');
const PayOrder = () => import('../pages/PayOrder/PayOrder.vue');
const ChangePwd = () => import('../pages/ChangePwd/ChangePwd.vue');
const Register = () => import('../pages/Register/Register.vue');
const wechartpay = () => import('../pages/wechartpay/wechartpay.vue');
const ClassList = () => import('../pages/ClassList/ClassList.vue');
const HisQus = () => import('../pages/HisQus/HisQus.vue');
const QusCover = () => import('../pages/QusCover/QusCover.vue');
const Setting = () => import('../pages/Setting/Setting.vue');
const ReadyPay = () => import('../pages/ReadyPay/ReadyPay.vue');
const NoticeList = () => import('../pages/NoticeList/NoticeList.vue');
const LearnHis = () => import('../pages/LearnHis/LearnHis.vue');
const Buyed = () => import('../pages/Buyed/Buyed.vue');
const HisQuestion = () => import('../pages/HisQuestion/HisQuestion.vue');
const PaySuccess = () => import('../pages/PaySuccess/PaySuccess.vue');
const ConsultList = () => import('../pages/ConsultList/ConsultList.vue');
const ConsultDetail = () => import('../pages/ConsultDetail/ConsultDetail.vue');

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      redirect: '/home',
      meta: { index: 0 },
    },
    {
      path: '/login',
      name: 'login',
      component: Login,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
        keepAlive: true,
      },
    },
    {
      path: '/register',
      name: 'register',
      component: Register,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
        keepAlive: true,
      },
    },
    {
      path: '/changePwd',
      name: 'changePwd',
      component: ChangePwd,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/home',
      name: 'home',
      component: Home,
      meta: {
        showFooter: true,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/taochang',
      name: 'taochang',
      component: TaoChang,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/taochangDetail',
      name: 'taochangDetail',
      component: TaoChangDetail,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/kecheng',
      name: 'kecheng',
      component: KeCheng,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/classList',
      name: 'classList',
      component: ClassList,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/payOrder',
      name: 'payOrder',
      component: PayOrder,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/kechengDetail',
      name: 'kechengDetail',
      component: KeChengDetail,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/tiku',
      name: 'tiku',
      component: Tiku,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/setting',
      name: 'setting',
      component: Setting,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/hisQus',
      name: 'hisQus',
      component: HisQus,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/qusCover',
      name: 'qusCover',
      component: QusCover,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/score',
      name: 'score',
      component: Score,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/queRecord',
      name: 'queRecord',
      component: QueRecord,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/doRecord',
      name: 'doRecord',
      component: DoRecord,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/question',
      name: 'question',
      component: Question,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/news',
      name: 'news',
      component: News,
      meta: {
        showFooter: true,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/newsDetail',
      name: 'newsDetail',
      component: NewsDetail,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/wechartpay',
      name: 'wechartpay',
      component: wechartpay,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/readyPay',
      name: 'readyPay',
      component: ReadyPay,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/mine',
      name: 'mine',
      component: Mine,
      meta: {
        showFooter: true,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/pickProject',
      name: 'pickProject',
      component: PickProject,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/noticeList',
      name: 'noticeList',
      component: NoticeList,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/learnHis',
      name: 'learnHis',
      component: LearnHis,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/buyed',
      name: 'buyed',
      component: Buyed,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/hisQuestion',
      name: 'hisQuestion',
      component: HisQuestion,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/paySuccess',
      name: 'paySuccess',
      component: PaySuccess,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/consultList',
      name: 'consultList',
      component: ConsultList,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
    {
      path: '/consultDetail',
      name: 'consultDetail',
      component: ConsultDetail,
      meta: {
        showFooter: false,
        index: 0,
        disCheck: true,
      },
    },
  ],
});
